package com.black.platform.menu.service.biz.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.black.platform.menu.mapper.MenuMapper;
import com.black.platform.menu.po.Menu;
import com.black.platform.menu.service.biz.MenuService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu> implements MenuService {

    @Override
    public List<Menu> search(String systemCode) {
        QueryWrapper<Menu> query = new QueryWrapper<>();
        query.eq("system_code", systemCode);
        return this.baseMapper.selectList(query);
    }
}
